package com.diaohw.platform.remote.metadata.obj.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 自定义属性参数表 VO
 *
 * @author D-Hw
 * @since 2024-09-18
 */
@Data
@Accessors(chain = true)
@Schema(name = "CustomAttributeParamDO", description = "自定义属性参数表 VO")
public class TableColumnBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;


    /**
     * 字段名称
     */
    @Schema(description = "字段名称")
    private String columnName;

    /**
     * 字段code
     */
    @Schema(description = "字段code")
    private String columnCode;

    /**
     * 字段类型;string、boolean、integer、float、date、time、date-time、file、enum
     */
    @Schema(description = "字段类型;string、boolean、integer、float、date、time、date-time、file、enum")
    private String columnType;

    /**
     * 是否必填
     */
    @Schema(description = "是否必填")
    private Integer required;

    /**
     * 默认值
     */
    @Schema(description = "默认值")
    private String defaultValue;

    /**
     * 是否多条记录;如果为多行，则不允许为空
     */
    @Schema(description = "是否多条记录;如果为多行，则不允许为空")
    private Integer multiple;

    /**
     * 单位
     */
    @Schema(description = "单位")
    private String unit;

}
